home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 1728 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  3.1 KB

  1. Path: soap.news.pipex.net!pipex!usenet
  2. From: m.hendry@dial.pipex.com (Mathew Hendry)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: playing 14 bit samples. how?
  5. Date: Tue, 23 Jan 96 04:07:22
  6. Organization: Private node.
  7. Distribution: world
  8. Message-ID: <19960123.45EA58.3E5E@am083.du.pipex.com>
  9. References: <4e0eeo$74f@tic.sm.dsi.unimi.it> <3103DED5.41C6@stud.unit.no>
  10. NNTP-Posting-Host: am083.du.pipex.com
  11. X-Newsreader: TIN [AMIGA 1.3 950726BETA PL0]
  12.  
  13. Steffen Thorsen (steffent@stud.unit.no) wrote:
  14. : stefano caselli wrote:
  15. : > 
  16. : > I've found on Aminet some progs claiming to be able to play samples
  17. : > with  14 bit quality, using only the standard amiga audio hardware.
  18. : > I'd like to know how this can be done (if possible).
  19. : > Can someone post some text about it? (detailed explanations,please)
  20. : > 
  21. : > thanx.
  22. : The Amiga has 8 bit sound by standard. But it also has 6 bit volume
  23. : registers for each sound channel which can be adjusted independently
  24. : from the main sound. And 6+8 bit is 14 bit as far as I know.
  25.  
  26. If playing back 16 bit samples it's done like this:
  27.  
  28. Representing each bit of the sample as 0123456789ABCDEF, in descending order
  29. of significance.
  30.  
  31. Channel 1, volume 63, play bits 01234567
  32. Channel 2, volume  1, play bits __89ABCD
  33.  
  34. with bits E and F (the least significant) discarded. The bits marked as "_"
  35. are permanently set to 0. If only the volume was specified as 8 bits - we'd
  36. be able to reproduce 16 bit samples fully :)
  37.  
  38. (note that channel 1 only plays at 63x the volume of channel 2, not 64x. This
  39. is one of the reasons for requiring calibration, as described below).
  40.  
  41. :                                                              It seems
  42. : easy, but needs a whole lot of CPU power doing this, while normal 8-bit
  43. : can be handled directly by DMA. Another problem is that you will have to
  44. : calibrate the programs to your speakers.
  45.  
  46. You have to calibrate not to the speakers, but to the peculiarities of your
  47. Paula chip, because her D/A converters inevitably have some nonlinearities /
  48. mismatches between channels. If you look in the distribution for DeliTracker:
  49.  
  50. DeliTracker222.lha mus/play   717K   1+Bugfixes & some new players/genies
  51.  
  52. you will find a prefs editor to perform this calibration. DeliTracker's 14 bit
  53. noteplayer will use the settings produced by this program if available.
  54.  
  55. BTW, don't think that the example settings included with the prefs program
  56. will be anywhere near to those required for your machine. I had a play with
  57. it and the settings I produced were miles away from those included in the
  58. archive (though the overall pattern pattern was similar).
  59.  
  60. On a side note, calibrating sound output to your _speakers_ is likely to be
  61. horrendously difficult - you would have to use a "perfect" microphone to
  62. measure the output at different frequencies / volumes and shape the output
  63. waveforms to provide a match. And loudspeakers have too many horrible
  64. nonlinearities to make this at all easy - which is why good loudspeakers
  65. are so expensive. Now, if someone could design a "loudspeaker compensator"
  66. which could predict a speaker's behaviour and shape the input waveforms
  67. accordingly, he'd be in for an early, comfortable retirement ;)
  68.  
  69. -- Mat.
  70.